﻿using TjZheng.Example.MVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TjZheng.Mvc;
using TjZheng.Logging;

namespace TjZheng.Example.MVC.Controllers
{
    public class AjaxController : TjZhengController
    {

        /// <summary>
        /// 测试同步，异步
        /// </summary>
        /// <returns></returns>
        public ActionResult Asyc()
        {
            return View();
        }

        [HttpPost]
        public ActionResult PostComplicatedEntity(FooEntity objFooEntity)
        {
            return Json(objFooEntity.zooEntity.zoo);
        }

        public ActionResult CrossDomain()
        {
            return View();
        }
    }
}
